<?php
class Zendvn_View_Helper_CmsVideo extends Zend_View_Helper_Abstract{

	public function cmsVideo($name = 'Button',$values =  null,$attribs = null,$options = array()){
		$xHtml = '<video id="'.$name.'" name="'.$name.'" controls ';
		if($attribs == null){
			$xHtml .=' >';
		}else{
			foreach ($attribs as $key=>$val){
				$xHtml .=  ' ' . $key . '="' . $val . '"';			
			}
			$xHtml .=' >';
		}
		foreach ($options as $key=>$val){
			$xHtml .= '<source src="'.$key.'/'.$val.'" />';
		}
		$xHtml .= '</video>';
		return $xHtml;
	}
}